var express = require('express');
var router = express.Router();
var expressJoi = require('@escook/express-joi')
var {register_schema, login_schema} = require('../schema/user')
const user_hander_login= require('../routerhander/user/login')
const user_hander_register = require('../routerhander/user/register')
/* GET home page. */
//expressJoi(register_schema),自动结构规则验证，有错不执行后面，执行去全局中间件
router.post('/register',user_hander_register.register);
router.post('/login',user_hander_login.login);
module.exports = router;
